<template>
  <Poptip trigger="hover"  transfer>
        <div style="padding:10px 0">{{data.employeeObj?data.employeeObj.actualName:"--"}}<br/>{{data.openid}}</div>
        <Tag color="gold">{{data.employeeObj?(data.employeeObj.isDisabled===0?'正常':data.employeeObj.isDisabled===2?'临时用户':'禁用'):"--"}}</Tag>
        <div class="api" slot="content">
            <div><Avatar icon="ios-person" :src="data.avatarUrl" size="large" /></div>
            <div>
                <span style="padding:10px">openid:</span>{{data.openid?data.openid:'--'}}
            </div>
            <div>
                <span style="padding:10px">昵称:</span>{{data.nickName?data.nickName:'--'}}
            </div>
        </div>
    </Poptip>
</template>
<script>
export default {
  name: 'EmployeeTip',
  props: {
    data: {
      type: Object,
      require: true
    }
  }
};
</script>
